{extend name="default/base/base_home" /}
{block name="mall_main"}


<div class="w1200">
<div class="dsh-container wrapper">
  <div class="left">
    <div class="dsh-module dsh-module-style01">
      <div class="title">
        <h3>{$Think.lang.article_article_article_class}</h3>
      </div>
      <div class="content">
        <ul class="dsh-sidebar-article-class">
          {foreach name="sub_class_list" item="v"}
          <li><a href="{:url('Article/index',['ac_id'=>$v.ac_id])}">{$v.ac_name}</a></li>
          {/foreach}
        </ul>
      </div>
    </div>
    <div class="dsh-module dsh-module-style03">
      <div class="title">
        <h3>{$Think.lang.article_article_new_article}</h3>
      </div>
      <div class="content">
        <ul class="dsh-sidebar-article-list">
          {notempty name="new_article_list"}
          {foreach name="new_article_list" item="v"}
          <li><i class="iconfont">&#xe687;</i>
            <a {if $v.article_url !=''}target="_blank"{/if}
              href="{if $v.article_url != ''}{$v.article_url}{else /}{:url('Article/show',['article_id'=>$v.article_id])}{/if}">{$v.article_title}
            </a>
          </li>
           {/foreach}
            {else /}
            <li>{$Think.lang.article_article_no_new_article}</li>
            {/notempty}
        </ul>
      </div>
    </div>
  </div>
  <div class="right">
    <div class="dsh-article-con">
      <div class="title-bar">
        <h3>{$class_name}</h3>
      </div>
      {notempty name="article"}
        <ul class="dsh-article-list">
          {foreach name="article" item="article"}
            <li><i></i>
              <a {if $article.article_url !=""}target="_blank"{/if}
                href="{if $article.article_url !=""}{$article.article_url}{else /}{:url('Article/show',['article_id'=>$article.article_id])}{/if} ">
              {$article.article_title}
              </a>
                <time>{:date('Y-m-d H:i',$article.article_time)}</time>
            </li>
            {/foreach}
      </ul>
       {else /}
        <div>{$Think.lang.article_article_not_found}</div>
     {/notempty}
    </div> <div class="tc mb20">  <div class="pagination"> {$show_page|raw} </div></div>
  </div>
</div>
</div>



{/block}
